package com.wakyde.pojo;

import org.springframework.stereotype.Component;

// 加入到springboot组件中
@Component
public class Dog {

    private String name;
    private String age;

    public Dog() {
    }

    public Dog(String name, String age) {
        this.name = name;
        this.age = age;
    }

// --Commented out by Inspection START (2023/2/10 20:53):
//    public String getName() {
//        return name;
//    }
// --Commented out by Inspection STOP (2023/2/10 20:53)

    @Override
    public String toString() {
        return "Dog{" +
                "name='" + name + '\'' +
                ", age='" + age + '\'' +
                '}';
    }
}
